<?php

if (!defined('UC_FILESYSTEM_ROOT')) 
{
    define('UC_FILESYSTEM_ROOT', dirname(__FILE__) . '/');
    require_once UC_FILESYSTEM_ROOT . 'UC_PHPFileSystemAutoloader.php';
}

class UC_PHPIOMode
{
    const FOR_READING = 'r';
    const FOR_WRITING = 'w';
    const FOR_APPENDING = 'a';
    
    static public function Defines($const)
    {
        $cls = new ReflectionClass(__CLASS__);
        return in_array( $const, $cls->getConstants());
    }
}

?>
